<script setup lang="ts">

</script>

<template>
  <div class="product-list" v-for="index in 4" :key="index">
    <div class="product-list-title">
      <h3 class="product-title-h">厄密</h3>
      <a class="product-title-a" href="javascript:;">查看全部 ></a>
      <div class="product-table">
        <a class="product-table-item" href="javscript:;">手机膜</a>
        <a class="product-table-item" href="javscript:;">小米</a>
        <a class="product-table-item" href="javscript:;">鼠标</a>
        <a class="product-table-item" href="javscript:;">电话线</a>
        <a class="product-table-item" href="javscript:;">手机</a>
      </div>
    </div>
    <div class="product-list-goods">
      <a class="product-goods-img" href="javascript:;">
        <img src="../../../images/clothes_goods_cover.jpg" alt="">
        <div class="product-goods-lable">
          <span class="product-lable-one">家料馆</span>
          <span class="product-lable-two">价高者得</span>
        </div>
      </a>
      <div class="product-list-item">
        <a class="list-goods-items" href="javascript:;">
          <div class="img-box">
            <img src="../../../images/clothes_goods_8.jpg" alt="">
          </div>
          <div class="title-box">
            <p>小呃花课堂开课了喝了就是好没呼吸还能跑</p>
            <p class="title-box-one"><span class="price-box">￥</span>909.69</p>
          </div>
          <div class="title-extra">
            <i class="title-extra-a">
              <span class="similarity">找相似</span>
              <span class="treasure">发现更多宝贝</span>
            </i>
          </div>
        </a>
        <a class="list-goods-items" href="javascript:;">
          <div class="img-box">
            <img src="../../../images/clothes_goods_8.jpg" alt="">
          </div>
          <div class="title-box">
            <p>小呃花课堂开课了喝了就是好没呼吸还能跑</p>
            <p class="title-box-one"><span class="price-box">￥</span>909.69</p>
          </div>
          <div class="title-extra">
            <i class="title-extra-a">
              <span class="similarity">找相似</span>
              <span class="treasure">发现更多宝贝</span>
            </i>
          </div>
        </a>
        <a class="list-goods-items" href="javascript:;">
          <div class="img-box">
            <img src="../../../images/clothes_goods_8.jpg" alt="">
          </div>
          <div class="title-box">
            <p>小呃花课堂开课了喝了就是好没呼吸还能跑</p>
            <p class="title-box-one"><span class="price-box">￥</span>909.69</p>
          </div>
          <div class="title-extra">
            <i class="title-extra-a">
              <span class="similarity">找相似</span>
              <span class="treasure">发现更多宝贝</span>
            </i>
          </div>
        </a>
        <a class="list-goods-items" href="javascript:;">
          <div class="img-box">
            <img src="../../../images/clothes_goods_8.jpg" alt="">
          </div>
          <div class="title-box">
            <p>小呃花课堂开课了喝了就是好没呼吸还能跑</p>
            <p class="title-box-one"><span class="price-box">￥</span>909.69</p>
          </div>
          <div class="title-extra">
            <i class="title-extra-a">
              <span class="similarity">找相似</span>
              <span class="treasure">发现更多宝贝</span>
            </i>
          </div>
        </a>
        <a class="list-goods-items" href="javascript:;">
          <div class="img-box">
            <img src="../../../images/clothes_goods_8.jpg" alt="">
          </div>
          <div class="title-box">
            <p>小呃花课堂开课了喝了就是好没呼吸还能跑</p>
            <p class="title-box-one"><span class="price-box">￥</span>909.69</p>
          </div>
          <div class="title-extra">
            <i class="title-extra-a">
              <span class="similarity">找相似</span>
              <span class="treasure">发现更多宝贝</span>
            </i>
          </div>
        </a>
        <a class="list-goods-items" href="javascript:;">
          <div class="img-box">
            <img src="../../../images/clothes_goods_8.jpg" alt="">
          </div>
          <div class="title-box">
            <p>小呃花课堂开课了喝了就是好没呼吸还能跑</p>
            <p class="title-box-one"><span class="price-box">￥</span>909.69</p>
          </div>
          <div class="title-extra">
            <i class="title-extra-a">
              <span class="similarity">找相似</span>
              <span class="treasure">发现更多宝贝</span>
            </i>
          </div>
        </a>
        <a class="list-goods-items" href="javascript:;">
          <div class="img-box">
            <img src="../../../images/clothes_goods_8.jpg" alt="">
          </div>
          <div class="title-box">
            <p>小呃花课堂开课了喝了就是好没呼吸还能跑</p>
            <p class="title-box-one"><span class="price-box">￥</span>909.69</p>
          </div>
          <div class="title-extra">
            <i class="title-extra-a">
              <span class="similarity">找相似</span>
              <span class="treasure">发现更多宝贝</span>
            </i>
          </div>
        </a>
        <a class="list-goods-items" href="javascript:;">
          <div class="img-box">
            <img src="../../../images/clothes_goods_8.jpg" alt="">
          </div>
          <div class="title-box">
            <p>小呃花课堂开课了喝了就是好没呼吸还能跑</p>
            <p class="title-box-one"><span class="price-box">￥</span>909.69</p>
          </div>
          <div class="title-extra">
            <i class="title-extra-a">
              <span class="similarity">找相似</span>
              <span class="treasure">发现更多宝贝</span>
            </i>
          </div>
        </a>
      </div>
    </div>
  </div>
</template>

<style lang="less" scoped>
.product-list {
  width: 1240px;
  margin: 0 auto;
}
.product-list-title {
  width: 100%;
  height: 115px;
  padding: 40px 0;
}
.product-title-h {
  height: 35px;
  line-height: 35px;
  margin-left: 6px;
  font-size: 32px;
  font-weight: 400;
  color: #333;
  float: left;
}
.product-table {
  height: 35px;
  padding-top: 13px;
  font-size: 16px;
  margin-right: 80px;
  float: right;
}
.product-title-a {
  line-height: 1;
  margin-top: 14px;
  font-size: 16px;
  color: #999;
  float: right;
  &:hover {
     color: #17bb9b;
  }
}
.product-table-item {
  padding: 2px 8px;
  margin-left: 5px;
  border-radius: 2px;
}
.product-list-goods {
  width: 1240px;
  height: 610px;
  display: flex;
  justify-content: space-around;
}
.product-goods-img {
  display: inline-block;
  width: 240px;
  height: 610px;
  background-color: #999;
}
.product-goods-lable {
  left: 0;
  bottom: 266px;
  width: 188px;
  height: 66px;
  text-align: center;
  line-height: 66px;
  color: #fff;
  font-size: 17px;
  border-radius: 0 2px 2px 0;
  background-color: rgba(0,0,0,.8);
  position: relative;
}
.product-lable-one {
  display: block;
  width: 76px;
  background-color: #000;
}
.product-lable-two {
  width: 112px;
  line-height: 1.4;
  transform: translateY(-50%);
  position: absolute;
  left: 76px;
  right: 0;
  top: 50%;
}
.product-list-item {
  width: 1000px;
  height: 610px;
}
.img-box {
  width: 240px;
  height: 160px;
  padding: 0 33px;
  text-align: center;
  margin: 0 auto;
  display: table-cell;
}
.title-box {
  height: 130px;
  line-height: 1.3;
  padding: 10px 22px 0;
  font-size: 16px;
  position: relative;
}
.title-box-one {
  font-size: 22px;
  color: #cf4444;
  position: absolute;
  bottom: 10px;
}
.price-box {
  margin-right: 10px;
  font-size: 17px;
}
.list-goods-items {
  display: inline-block;
  width: 240px;
  height: 300px;
  overflow: hidden;
  &:hover {
    border: 1px solid #27ba9b;
  }
  &:hover .title-extra {
    bottom: 77px;
  }
}
.title-extra {
  width: 238.4px;
  height: 86px;
  padding-top: 10px;
  transition: bottom .3s;
  background-color: #27ba9b;
  position: relative;
  bottom: -10px;
}
.similarity {
  display: block;
  width: 124px;
  line-height: 1;
  padding: 9px 0 8px;
  margin: 0 auto;
  text-align: center;
  font-size: 19px;
  color: #fff;
}
.title-extra-a {
  display: inline-block;
  width: 100%;
  height: 66.8px;
}
.treasure {
  font-size: 13px;
  border-top: 1px solid #fff;
  display: block;
  width: 124px;
  line-height: 1;
  padding: 9px 0 8px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
</style>
